| Conditions | 4 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | import { createAction, handleActions } from 'redux-actions'; |
||
| 10 | |||
| 11 | 1 | export const resetSelectedServer = createAction(RESET_SELECTED_SERVER); |
|
| 12 | |||
| 13 | 2 | export const selectServer = (serversService) => (serverId) => (dispatch) => { |
|
| 14 | 2 | dispatch(resetShortUrlParams()); |
|
| 15 | |||
| 16 | 2 | const selectedServer = serversService.findServerById(serverId); |
|
| 17 | |||
| 18 | 2 | dispatch({ |
|
| 19 | type: SELECT_SERVER, |
||
| 20 | selectedServer, |
||
| 28 |